package com.sleepcamel.resteasyConfigurator.model;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;


public class UserPreferences{

	private final PropertyChangeSupport pcs = new PropertyChangeSupport( this );
	
	public UserPreferences() {
	}

	public String name;
	
	public String userName;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		String old = this.name;
        this.name = name;
		this.pcs.firePropertyChange("name", old, name);
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void addPropertyChangeListener(PropertyChangeListener listener) {
		this.pcs.addPropertyChangeListener(listener);
	}

	public void removePropertyChangeListener(PropertyChangeListener listener) {
		this.pcs.removePropertyChangeListener(listener);
	}

}
